package exception;

import net.sf.json.JSONArray;

public class ValidationError extends Exception {

	private static final long serialVersionUID = 5736792490572347061L;

	public ValidationError(String message) {
		super(message);
	}

	public JSONArray toJsonArray() {
		JSONArray msgs = new JSONArray();
		msgs.add(getMessage());
		return msgs;
	}

}
